<?php use_helper('Javascript') ?>
<h2>
        <?php 	switch($accion):
					case 'edit':
						echo "Editar Tribunal: Buscar";
						break;
					case 'show':
						echo "Ver Tribunal: Buscar";
						break;
					default:
						echo "Buscar Tribunal";
						break;;
				endswitch;
        ?>
</h2>
<div id="form_search_tribunal">
	<?php echo form_remote_tag(array(
    	'update'   	=> 'list-search-tribunal',
    	'url'      	=> 'administracion/searchtribunalupdate',
		'loading'	=> visual_effect('appear','loading'),
		'complete'	=> visual_effect('appear','list-search-tribunal').
						visual_effect('highlight','list-search-tribunal',array('duration' => 1.0)).
						visual_effect('fade','loading'),
	))?>
  <table>
    <tfoot>
      	<tr>
      		<td colspan="2">
      			<?php echo link_to_remote('Cancelar', array(
          				'update'	=> 'modulo',
          				'url'		=> 'administracion/indextribunal',
          				'loading'	=> visual_effect('appear','loading', array('duration' => 0)),
						'complete'	=> visual_effect('fade','loading', array('duration' => 0)), )); ?>
        		<input type="submit" value="Buscar"/>
      		</td>
    	</tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><label for="tribunal_ciudad">Ciudad</label></th>
        <td>
          <?php echo $form['ciudad']->renderError() ?>
          <?php echo $form['ciudad'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="tribunal_nombre">Nombre</label></th>
        <td>
          <?php echo $form['nombre']->renderError() ?>
          <?php echo $form['nombre'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="tribunal_comuna">Comuna</label></th>
        <td>
          <?php echo $form['comuna']->renderError() ?>
          <?php echo $form['comuna'] ?>
          <?php echo $form['accion'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
</div>
<div id="list-search-tribunal" class="pop-up" style="display:none"></div>